package org.test1;

public class Task01 {
    public static void main(String[] args) {
        WildDuck duck = new WildDuck();
        Swimmable s = duck;
        Flyable f = duck;
        Animal a = duck;
        s.swim();
        f.fly();
        a.eat();
    }
}
